Don't build native tools when not cross-compiling
authorMatthias Clasen <mclasen@redhat.com>
Sat, 2 Feb 2013 04:53:59 +0000 (23:53 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 2 Feb 2013 04:53:59 +0000 (23:53 -0500)
This was my local native build to fail.

gtk/native/Makefile.am

index 20416ce00f68a3963f79025a9485b4ee983c390e..302f0554a9c39368b9fcd9f79a4474457ca019a0 100644 (file)
@@ -4,11 +4,13 @@ CPP = @CPP_FOR_BUILD@
 CPPFLAGS = @CPPFLAGS_FOR_BUILD@
 LDFLAGS = @LDFLAGS_FOR_BUILD@
 
+if CROSS_COMPILING
 if !USE_EXTERNAL_ICON_CACHE
 noinst_PROGRAMS = native-update-icon-cache
 native_update_icon_cache_CFLAGS = $(NATIVE_GDKPIXBUF_CFLAGS)
 native_update_icon_cache_LDADD = $(NATIVE_GDKPIXBUF_LIBS)
 native_update_icon_cache_SOURCES = $(srcdir)/../updateiconcache.c
 endif
+endif
 
 -include $(top_srcdir)/git.mk